<meta title="" args="page,params"/>
<tr>
    <td>页面</td>
    <td class="form-inline">
        <select class="form-control" s="select"
                id="pageSelect"
                s-data="page"
                s-build="S.get('/api/enum/valuesMap/core.operation.center.domain.Page')"
                name="page">
        </select>
    </td>
</tr>
<tr>
    <td>页面参数</td>
    <td>
        <div id="paramsDescTip" class="p-t" s="window"></div>
    </td>
</tr>
<script>

    $pageSelect.node.change(function () {
        var val = $(this).val();
        var paramData = {}
        $.each(params.split("&"), function() {
            var tmps = this.split("=")
            if(tmps.length == 1) {
                paramData[tmps[0]] = ''
            } else {
                paramData[tmps[0]] = decodeURIComponent(tmps[1]);
            }
        })
        $paramsDescTip.load("/operation-center/" + val + "_params.html", {params: paramData})
    })

    S.on("s-ready", function () {
        $pageSelect.node.change();
    })
    S.getPageTitle = function () {
        return $pageSelect.node.find("option[value='" + $pageSelect.node.val() + "']").text();
    }
</script>